import type { RouteRecordRaw } from 'vue-router';

import { VBEN_LOGO_URL } from '@vben/constants';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: VBEN_LOGO_URL,
      order: 4,
      title: '异常管理',
    },
    name: 'Unusual',
    path: '/unusual',
    children: [
      {
        name: 'unusualDisposal',
        path: '/unusual/disposal',
        component: () => import('#/views/unusual/disposal/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '异常处理',
        },
      },
      {
        name: 'unusualStockOutAudit',
        path: '/unusual/stockOutAudit',
        component: () => import('#/views/unusual/stockOutAudit/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '退库审核',
        },
      },
      {
        name: 'unusualDiscardAudit',
        path: '/unusual/discardAudit',
        component: () => import('#/views/unusual/discardAudit/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '报废审核',
        },
      },
      {
        name: 'unusualDisposalRecord',
        path: '/unusual/disposalRecord',
        component: () => import('#/views/unusual/disposalRecord/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '异常处理记录',
        },
      },
      {
        name: 'unusualCodeChange',
        path: '/unusual/codeChange',
        component: () => import('#/views/unusual/codeChange/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '批号变更',
        },
      },
      {
        name: 'unusualCodeChangeRecord',
        path: '/unusual/codeChangeRecord',
        component: () => import('#/views/unusual/codeChangeRecord/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '批号变更记录',
        },
      },
      {
        name: 'unusualCodeChangeAudit',
        path: '/unusual/codeChangeAudit',
        component: () => import('#/views/unusual/codeChangeAudit/index.vue'),
        meta: {
          icon: 'lucide:copyright',
          title: '批号变更审核',
        },
      },
    ],
  },
];

export default routes;
